using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

/**
*@file       PCEndChangeMapSender.cs
*@brief      send message PCEndChangeMap
*
*@author     graywind
*@version    1.0.0.1
*@data       2012/4/23
*/

//send message PCEndChangeMap
public class msgPCEndChangeMap
{
    public const int MessageId = (int)PosSyncTypes.MessageType.PCEndChangeMap;
    //TODO
	public int SessionId = NetLib.INVALID_SESSION;
	public int GateCode = GlobalDef.INVALID_GATE_CODE;
	/// <summary>
	/// Initializes a new instance of the <see cref="msgPCEndChangeMap"/> class.
	/// </summary>
	/// <param name='session_id'>
	/// Session_id.
	/// </param>
	public msgPCEndChangeMap(int session_id)
	{
		SessionId = session_id;
	}
}

//handle message
public partial class gwMessagePort
{
    /// <summary>
    /// handle message
    /// </summary>
    /// <param name="msg">message wrapper of PCEndChangeMap</param>
    public static void ProcessMessage(msgPCEndChangeMap msg)
    {
        //TODO
        //Main Message:  msgPosSync
		msgPosSync mainMsg = new msgPosSync(msg.SessionId, msg.GateCode, msgPCEndChangeMap.MessageId, null);
		gwMessagePort.ProcessMessage(mainMsg);
    }
}
